package com.dt76.smallloanbackendservice.mapper.xm;

import com.dt76.smallloanbackendservice.pojo.xm.BeforeOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BeforeOrderMapper {


    List<BeforeOrder> qryConditionPageAll(
            @Param("start") int start,
            @Param("end") int end,
            @Param("queryName") String queryName,
            @Param("queryPhone") String queryPhone,
            @Param("startTime") String startTime,
            @Param("endTime") String endTime,
            @Param("queryType") int queryType,
            @Param("queryBoType") String queryBoType,
            @Param("queryBoTypeList") String[] queryBoTypeList);

    List<BeforeOrder> qryConditionPageAll2(
            @Param("start") int start,
            @Param("end") int end,
            @Param("queryName") String queryName,
            @Param("queryPhone") String queryPhone,
            @Param("startTime") String startTime,
            @Param("endTime") String endTime,
            @Param("queryType") int queryType,
            @Param("queryBoType") String queryBoType,
            @Param("queryBoTypeList") String[] queryBoTypeList);


    int qryConditionCount(@Param("queryName") String queryName,
                          @Param("queryPhone") String queryPhone,
                          @Param("startTime") String startTime,
                          @Param("endTime") String endTime,
                          @Param("queryType") int queryType,
                          @Param("queryBoType") String queryBoType,
                          @Param("queryBoTypeList") String[] queryBoTypeList);

    BeforeOrder qryByID(int id);

    int modifyBeforeOrderType(BeforeOrder beforeOrder);
}
